package com.example.meituan.service;

import com.example.meituan.bean.User;
import com.example.meituan.utils.UserResponse;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

public interface UserService {

    @FormUrlEncoded
    @POST("user/login")
    Call<UserResponse> loginUser(
            @Field("username") String username,
            @Field("password") String password
    );
    @POST("user/register")
    Call<UserResponse> registerUser(@Body User user);
}
